package com.ctg.itrdc.imageconsole.util;

import javax.servlet.http.HttpServletRequest;

/**
 * @description:
 * @version: v1.0.0
 * @author: FFSC-CHENSS
 *
 */
public class RequestUtils {

	private RequestUtils() {

	}

	private static ThreadLocal<HttpServletRequest> requestLocal = new ThreadLocal<HttpServletRequest>();

	public static HttpServletRequest getRequest() {
		return (HttpServletRequest) requestLocal.get();
	}

	public static void setRequest(HttpServletRequest request) {
		requestLocal.set(request);
	}
}
